-- GENERATED SPELL FOR [Arch Druid Renferal] --


function spell0_13442(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(22127,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13442', 11500, 1)
end

function spell1_13442(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(22206,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13442', 12000, 1)
end

function spell2_13442(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(15981,pUnit)
pUnit:RegisterEvent('Sorts_13442', 12000, 1)
end

function Sorts_13442(pUnit, Event)
local choix_sorts_13442 = math.random(0, 2)
if choix_sorts_13442 == 0 then
pUnit:RegisterEvent('spell0_13442', 1, 1)
end
if choix_sorts_13442 == 1 then
pUnit:RegisterEvent('spell1_13442', 1, 1)
end
if choix_sorts_13442 == 2 then
pUnit:RegisterEvent('spell2_13442', 1, 1)
end
end

function mob13442_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13442', math.random(1500, 3000), 1)
end

function mob13442_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13442_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13442_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13442, 1, 'mob13442_Action')
RegisterUnitEvent(13442, 2, 'mob13442_Leave')
RegisterUnitEvent(13442, 3, 'mob13442_Kill')
RegisterUnitEvent(13442, 4, 'mob13442_Die')
